import React from 'react';
import { connect } from 'dva';
import AverageY from './AverageY'

import Excel from './Excel'


function AveragePageY({ dispatch, dataArr }) {
 
  return (
    <div>

      <Excel />

      {
        dataArr.length > 1 ? <AverageY /> : null
      }
  
    </div>
  );

}



export default connect(({ echart }) => ({ ...echart }))(AveragePageY)